package com.aosan.website.common.security.annotation

import com.aosan.website.common.security.config.ResourceConfiguration
import org.springframework.context.annotation.Import
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer

@Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.RUNTIME)
@EnableGlobalMethodSecurity(prePostEnabled = true)
@Import(ResourceConfiguration::class)
@EnableResourceServer
annotation class ResourceServer